import { createApp } from 'vue'
import App from './App.vue'
//导入路由
import router from './router/index.js'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//导入element plus国际化
import zhCn from 'element-plus/es/locale/lang/zh-cn'
//创建实例
const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.use(router).use(ElementPlus,{locale:zhCn}).mount('#app')
